<?php
/**
 * Created by PhpStorm.
 * UsersF: Mloong
 * Date: 2019/2/25
 * Time: 14:30
 */

namespace app\login\controller;



use app\api\service\Token;
use app\login\service\PreviewService;
use think\facade\Request;

class Preview extends BaseController
{
    public function index()
    {
        return $this->fetch('/login/Preview');
    }

    public function previewPage()
    {
        $name = Token::getRedisTokenName();
        $type = Request::post('type');
        $data = Request::get();
        $service = new PreviewService();
        $data = $service->pageData($name,$type);
    }
}